#pragma once

class GameConfig : public Singleton<GameConfig>
{
public:
	void Resize()
	{
		int w = GetWidth();
		int h = GetHeight();
		if ( w != Width )
		{
			Width = w;
			MapViewSizeW = Width / TileSize-8;
			resize = true;
		}
		if ( h != Height )
		{
			Height = h;
			MapViewSizeH = Height / TileSize;
			resize = true;
		}
	}

	char *TitleGame = "Likot Mylovar";
	int Width = 640;
	int Height = 480;

	int TileSize = 16;
	int MapSize = 100;
	int MapViewSizeW = Width / TileSize-8;
	int MapViewSizeH = Height / TileSize;
	int MapZ = 30;

	int LineHeight = 0;

	bool resize = true;
};